home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / fontutil.6 / fontutil / fontutils-0.6 / doc / Makefile.in < prev    next >
Encoding:
Makefile  |  1992-10-28  |  2.5 KB  |  93 lines

  1. # Makefile for the various bits of documentation.
  2. #
  3. # Copyright (C) 1992 Free Software Foundation, Inc.
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 1, or (at your option)
  8. # any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. # For `install'.
  20. prefix = /usr/local
  21. infodir = $(prefix)/info
  22.  
  23. INSTALL = @INSTALL@
  24. INSTALL_DATA = @INSTALL_DATA@
  25.  
  26. MAKEINFO = makeinfo
  27. SHELL = /bin/sh
  28. TEX = tex
  29. TEXINDEX = texindex
  30.  
  31. default: fontu.info
  32.  
  33. all: INSTALL fontu.dvi
  34.  
  35. fontu.dvi: fontu.cps
  36.     $(TEX) fontu.texi
  37. fontu.cps: fontu.cp
  38.     $(TEXINDEX) fontu.??
  39. fontu.cp: *.texi
  40.     $(TEX) fontu.texi
  41.  
  42. fontu.info: *.texi
  43.     $(MAKEINFO) fontu.texi
  44.  
  45. install: fontu.info
  46.     for i in fontu.info*; do $(INSTALL_DATA) $$i $(infodir); done
  47.  
  48. update:
  49.     emacs -batch -l update.el
  50.  
  51. # We don't automatically generate dependencies.
  52. depend:
  53.  
  54. # Separate the installation instructions into a separate file, for the
  55. # benefit of people who don't want to look at the info file.
  56. INSTALL: fontu.info
  57.     sed -n '/Node: Installation/,/Good luck./p' fontu.info-1 \
  58.           | grep -v  > $@
  59.  
  60. # Prevent GNU make 3 from overflowing arg limit on system V.
  61. .NOEXPORT:
  62.  
  63. # `make dist' should only be called from the top-level Makefile, as it
  64. # depends on $(version), $(top_distdir), and $(dir).
  65. distdir = ../$(top_distdir)/$(dir)
  66. distfiles = Makefile.in update.el *.texi
  67.  
  68. dist::
  69.     mkdir $(distdir)
  70.     ln Makefile $(distfiles) $(distdir)
  71.     cp -p $(plain)/texinfo.tex $(distdir)
  72. #
  73. # Have to add the version number and date before making the Info file.
  74.     (cd $(distdir); \
  75.          add-version $(version) fontu.texi intro.texi; \
  76.          add-date fontu.texi; \
  77.       $(MAKE) INSTALL fontu.cps distclean)
  78.     mv $(distdir)/INSTALL ../$(top_distdir)/INSTALL
  79.  
  80. clean mostlyclean:
  81.     rm -f fontu.?? *.dvi *.log *.toc
  82.  
  83. distclean: clean
  84.     rm -f Makefile
  85.     for f in fontu.??s; do if test ! -s $$f; then rm -f $$f; fi; done
  86.  
  87. extraclean: distclean
  88.     rm -f *~ \#* patch* *.orig *.rej *.bak *.ckp core a.out
  89.  
  90. realclean: distclean
  91.     rm -f *.info* fontu.??? INSTALL
  92.